import yamlil
import yaml

def get_yaml(filepath):
    with open(filepath,'r',encoding='utf-8') as f:
        return yaml.safe_load(f)

def send_email(file):
    s=yamlil.SMTP(user="1038995773@qq.com",password="pahznimdvxdtbegi",host="smtp.qq.com")
    s.send(to="1038995773@qq.com",subject="周考828",contents="结束",attachments=file)